import { createRouter, createWebHistory } from 'vue-router'

 
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path:'/',
      name:'index',
      component:()=>import ('@/views/index.vue')
    },
    {
      path:'/login',
      name:'login',
      component:()=>import ('@/views/login.vue')
    },

    {
      path:'/403',
      name:'403',
      component:()=>import('@/views/noPermission.vue')
    },
    

    {
      path: '/doc',
      name: 'doc',
      component: ()=>import('../views/doc.vue'),
      
    }, 
    
    
    {
      path:'/create/askleave',
      name:'create_askleave',
      component:()=>import ('@/views/create/askLeave.vue')
    },
    
    {
      path:'/system/askLeaveReport',
      name:'askLeaveReport',
      component:()=>import('../views/system/askLeaveReport.vue'),
    },
    {
      path:'/query/queryIndex',
      name:'queryIndex',
      component:()=>import('../views/search/searchIndex.vue'),
    },
    {
      path:'/query/car/detail',
      name:'carDetail',
      component:()=>import('../views/car/carDetail.vue')
    },
    {
      path:'/query/person/personDetail',
      name:'personDetail',
      component:()=>import('../views/person/personDetail.vue')
    },

    {
      path:'/query/person/personAllInfoDetail',
      name:'personDetail',
      component:()=>import('../views/search/personAlllInfoDetail.vue')
    },
    {
      path:'/query/aiChat/',
      name:'aichat',
      component:()=>import('../views/ai/aiChat.vue')
    }

  ],
})

export default router
